package com.rop.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rop.model.system.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author rop
 * @since 2023-04-24
 */
@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据userId查询菜单权限数据
     * @param userId 用户id
     * @return 用户的菜单权限
     */
    List<SysMenu> findMenuListByUserId(@Param("userId") Long userId);
}
